//
//  DutyParentsViewController.h
//  MobileOffice
//
//  Created by jjkj on 16/11/1.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "ParentsViewController.h"
#import "DutyBasicTableViewCell.h"
#import "CenterLabelTableViewCell.h"
#import "DatePickerView.h"
#import "AddWorkPersonViewController.h"
#import "InstitutionListModel.h"
#import "PromptView.h"
#import "BeginTimeModel.h"
#import "DepartPersonListModel.h"
#import "AddPersonListTableViewCell.h"
#import "ReasonTextTableViewCell.h"
#import "LawDetailViewController.h"
#import "DutyLawTitleTableViewCell.h"
#import "DutyDropModel.h"
#import "DropListTableViewCell.h"
#import "DropDetailListTableViewCell.h"
#import "CustomField.h"
#import "DateConflictView.h"
#import "MarriageTableViewCell.h"
#import "ReasonListTableViewController.h"
#import "VacateInfoModel.h"
#import "MyJobListViewController.h"


#define getSingleControl @"getSingleControl"//获取单项控制
#define getCauseList @"getCauseList"//请假事由快捷输入
#define getPersonalDaysInfo @"getPersonalDaysInfo"//加班和年假天数请求
#define getCountdownTimeInfo @"getCountdownTimeInfo"//获取倒计时间
#define getDepartPersonList @"getDepartPersonList"//获取人员列表
#define getManagementInfo @"getManagementInfo"//获取制度详细信息
#define getTimeControl @"getTimeControl"//选择开始时间的请求
#define getVacateDaysOnly @"getVacateDaysOnly"//获取请假天数
#define IsOverLaped @"IsOverLaped"//提交时的提示文字
#define postSickVacateInfo @"postSickVacateInfo"//提交的接口
#define updateSickVacateInfo @"updateSickVacateInfo"//更新病假申请提交接口
#define getDropList @"getDropList"//获取可选项列表
#define getVacateInfo @"getVacateInfo"//病假审批,销假查看,核销查看,申请草稿查看,审批查看,销假查看，核销查看，已核销查看页面请假信息


//typedef enum
//{
//
//  ApplyHoliday = 0,//请假
//  SupplementHoliday,//补假
//}ApplyType;//枚举名称

@interface DutyParentsViewController : ParentsViewController<UITableViewDelegate,UITableViewDataSource,UITextViewDelegate,UITextFieldDelegate>
{
    UITableView *_tableView;//列表
    BeginTimeModel *_beginTimeModel;
    NSArray *_titleArr;//主题数组
    NSMutableArray *_messageArr;//内容数组
    InstitutionListModel *_institutionListModel;//制度信息数组
    PromptView *_promptView;//制度提示框
    NSInteger _minute;//分钟
    NSInteger _second;//秒
    NSTimer *_timer;//计时器
    UILabel *_timeLabel;//时间label
}
@property (nonatomic,strong) DutyDropModel *dropListModel;//请假类型model
@property (nonatomic,strong) DutyDropModel *dropDetailListModel;//请假类型详情model
@property (nonatomic,strong) VacateInfoModel *infoModel;//历史数据
@property (nonatomic,strong) BeginTimeModel *endTimeModel;//结束时间model
@property (nonatomic,strong) UIButton *systemButton;//制度按钮
@property (nonatomic,strong) UIButton *doubtButton;//疑问按钮
@property (nonatomic,strong) UILabel *vacationTime;//假期时长
@property (nonatomic,strong) NSString *businessCode;//业务编码
@property (nonatomic,strong) NSString *sex;//业务编码
@property (nonatomic,strong) NSString *navaTitle;
@property (nonatomic,assign) NSInteger dutyType;//0 请假  1补假
@property (nonatomic,strong) CustomField *textField;//用户输入天数的textField
@property (nonatomic,strong) NSString *keywordId;
@property (nonatomic,strong) UIButton *beginSignButton;//开始疑问button
@property (nonatomic,strong) UIButton *endSignButton;//结束疑问button
@property (nonatomic,strong) UIButton *vacationTimeButton;//假期时长提示
@property (nonatomic,strong) NSString *vacateBillId;//请假单编号
@property (nonatomic,strong) NSString *beginStr;//开始时间
@property (nonatomic,strong) NSString *endStr;//结束时间
@property (nonatomic,strong) NSString *applyStr;//请假的提示语
@property (nonatomic,strong) NSString *BaseTypeId;//大类id
@property (nonatomic,strong) NSString *mapStr;//地点
@property (nonatomic,strong) NSString *cardInfoId;//去说明处提交的说明项的编号
@property (nonatomic,strong) NSString *infoId;//待办事项编号
@property (nonatomic,strong) NSString *taskId;//
@property (nonatomic,strong) NSString *optionType;//时间冲突是用户的选择项
@property (nonatomic,strong) NSString *systemHolidaycount;//固定的假期时间
@property (nonatomic,assign) UILabel *holidayCountLabel;//请假天数title
@property (nonatomic,strong) UILabel *endTimeLabel;//结束时间
@property (nonatomic,strong) UITextView *reasonTextView;//请假原因
@property (nonatomic,strong) NSString  *holidayCount;//请假天数
@property (nonatomic,strong) NSString *personYearDays;//年假天数
@property (nonatomic,strong) NSString *yearVacateReplaceDays;//抵消年假天数
@property (nonatomic,strong) UILabel *userTitleLabel;//申请人title
@property (nonatomic,strong) UILabel *beginTitleLabel;//开始时间title
@property (nonatomic,strong) UILabel *endTitleLabel;//结束时间title
@property (nonatomic,strong) UILabel *holidaysTitleLabel;//调休天数title
@property (nonatomic,strong) UILabel *reasonTitleLabel;//请假原因title
@property (nonatomic,strong) UILabel *lawDayLabel;//法定期限title
@property (nonatomic,strong) UILabel *otherDayLabel;//其他情形title
@property (nonatomic,strong) ReasonListTableViewController *reasonList;//原因列表

@property (nonatomic,strong) NSMutableArray *mustSelectArr;//用来保存必选事项
@property (nonatomic,strong) NSMutableArray *addWorkPersonArr;
- (void)theTimeOut;//时间到了
- (void)systemButtonClick;//制度按钮点击
- (void)setLabelBorderColorWithLabel:(UILabel *)label color:(UIColor *)color;//标记未填选项
- (void)getTimeControlRequestWithBeginTime:(NSString *)beginTime endTime:(NSString *)endTime type:(NSString *)type;//获取时间管控
- (void)signButtonClick:(UIButton *)button;//时间疑问按钮
- (void)getVacateDaysOnlyRequest;//获取请假天数

- (void)addTableViewFootView;//设置tableViewViewFootView
- (void)submitClick:(UIButton *)button;//提交存草稿
- (void)getPersonalDaysInfoSuccess;//年假获取成功
- (void)postSickVacateInfoRequestWith:(NSString *)state;//提交请假信息
- (void)getDropListRequestWithdataSwith:(NSString *)dataSwith isDetailList:(BOOL)isDetailList;//获取可选项列表
- (void)dropListModelRequestSuccess;//请假类型列表请求成功
- (void)dropDetailListModelRequestSuccess;//请假类型详细列表请求成功
- (void)addTapGestureRecognizer;//增加取消键盘手势
- (void)removeTapGestureRecognizer;//移除键盘手势
- (void)vacationTimeButtonClick;//休假时长提示
- (NSString *)getEndDateStrWithDays:(CGFloat)days beginStr:(NSString *)beginStr;//获取若干天后的日期
- (void)submitApplyRequestWithState:(NSString *)state;//获取提交前的提示文字
- (void) scrollToCell:(NSIndexPath*) path;//将列表滚动到指定位置
- (void)getVacateInfoRequestSuccess:(id)responseObject;//页面请假信息请求成功

- (void)timerFunc;//定时器刷新函数
@end
